package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
* <p>
* 班次阶段表
* </p>
*
* @author wsl
* @since 2022-04-14
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("shift_phase")
@ApiModel(value = "ShiftPhase对象", description = "班次阶段表")
public class ShiftPhase implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("班次编号")
    private Integer shiftId;

    @ApiModelProperty("上班时间")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private LocalTime workTime;

    @ApiModelProperty("下班时间")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private LocalTime leaveTime;

    @ApiModelProperty("显示顺序")
    private Integer sort;

    @ApiModelProperty("是否启用")
    private Integer enabled;

    @ApiModelProperty("可以提前打卡的时间")
    private Integer advanceTime;

    @ApiModelProperty("可以推后打卡的时间")
    private Integer delayTime;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    private LocalDateTime updateTime;


}
